<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="Expires" content="0">
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="Cache-control" content="no-cache">
	<meta http-equiv="Cache" content="no-cache">
	<meta name="viewport" content="width=device-width,initial-scale=1.0">
	<meta name="renderer" content="webkit">
	<link href='/page/assets/css/boot/bootstrap.min.css' media='all' rel='stylesheet' type='text/css' />
	<link href='/page/assets/css/fileinput/fileinput.min.css' media='all' rel='stylesheet' type='text/css' />
	<link href="/page/assets/css/dqq.css" rel="stylesheet">
	<link rel="stylesheet" href="/page/assets/css/select2/select2.min.css">
	<link href="//at.alicdn.com/t/font_574298_o3cvlwit9vm.css" rel="stylesheet">
	<style>
		th{
			cursor: pointer;
		}
		.select2-container--default{
			width: 100% !important;
		}
	</style>
	<script>
        //图书管理
        var _page="userManager";
	</script>
</head>
<body class="inner_body" id="all_date">
<div class="">
	<div class="panel panel-warning">
		<div class="panel-heading d_title">标题</div>
		<div class="panel-body">
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class='control-label valited-required' for="tel">手机号</label>
						<input type='text' class="form-control" id="tel" name="tel" placeholder="请输入手机号" title="请输入手机号"/>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class='control-label valited-required' for="nickname">昵称</label>
						<input type='text' class="form-control" id="nickname" name="nickname" placeholder="请输入昵称" title="请输入昵称"/>
					</div>
				</div>

				<div class="col-sm-6">
					<div class="form-group">
						<label class='control-label valited-required' for="shareCode">优惠券码</label>
						<input type='text' class="form-control" id="shareCode" name="shareCode" placeholder="请输入优惠券码" title="请输入优惠券码"/>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class='control-label valited-required' for="shopName">网购名称</label>
						<input type='text' class="form-control" id="shopName" name="shopName" placeholder="请输入网购名称" title="请输入网购名称"/>
						<!--<div>-->
						<!--<select name="shopName" class="select2" id="shopName">-->

						<!--</select>-->
						<!--</div>-->
					</div>
				</div>


				<div class="col-sm-6 ">
					<label class='control-label'>&nbsp;</label>
					<div>
						<button class="btn btn-warning d_search pull-left">查询</button>
						<!--<button class="btn btn-warning d_add pull-right">添加</button>-->
					</div>
				</div>
			</div>
		</div>

	</div>
	<div class="panel panel-info">
		<div class="panel-heading d_list">列表
		</div>
		<div class="panel-body">
			<table class='data-table table table-bordered table-striped table-hover' cellspacing="0" width="100%" id="table_01">
				<thead>
				<tr>
					<th type="number" onclick="sortAble(this,'table_01', 0,'int')">用户id</th>
					<th type="string" onclick="sortAble(this,'table_01', 1,'string')">头像</th>
					<th type="number" onclick="sortAble(this,'table_01', 2,'string')">手机号码</th>
					<th type="string" onclick="sortAble(this,'table_01', 3,'string')">昵称</th>
					<th type="string" onclick="sortAble(this,'table_01', 4,'string')">账户状态</th>
					<th type="number" onclick="sortAble(this,'table_01', 5,'int')">积分</th>
					<th type="number" onclick="sortAble(this,'table_01', 6,'int')">推荐人数</th>
					<th type="string" onclick="sortAble(this,'table_01', 7,'string')">出生日期</th>
					<th type="string" onclick="sortAble(this,'table_01', 8,'string')">性别</th>
					<!--<th>年龄</th>-->
					<th type="string" onclick="sortAble(this,'table_01', 9,'string')">购买渠道</th>
					<th type="number"  style="display: none">渠道id</th>
					<!--<th>注册时间</th>-->
					<th type="string" onclick="sortAble(this,'table_01', 11,'string')">注册日期</th>
					<th type="string" onclick="sortAble(this,'table_01', 12,'string')">上次登陆时间</th>
					<th type="string" onclick="sortAble(this,'table_01', 13,'string')">通讯地址</th>
					<th type="string" onclick="sortAble(this,'table_01', 14,'string')">分享码</th>
					<th>积分使用记录</th>

					<th>备注</th>
					<th>操作</th>
				</tr>
				</thead>
				<tbody class="hover" style="max-height: 100px">

				</tbody>
			</table>
			<!--放置分页数据-->
			<div class="pagination_parent">
				<div id="page_01" class="m-pagination">
					<button class="btn btn-default homePage">首页</button>
					<button class="btn btn-default prevPage">上一页</button>
					<button class="btn btn-default nextPage">下一页</button>
				</div>
			</div>
		</div>
	</div>

</div>
<!--用户信息弹框-->
<div class="userModel">
	<div class="modal fade" id="userModel" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel" >
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
					<h4 class="modal-title" id="gridSystemModalLabel">用户 15623930911 信息</h4>
				</div>
				<div class="modal-body">
					<form class="form validate-form" onsubmit="return false;">

						<div class="row">

							<div class="col-sm-12">
								<div class="form-group">
									<label class='control-label valited-required' for="tel">电话</label>
									<input type='text' class="form-control" id="tel" name="tel" placeholder="请输入电话" title="请输入电话"  data-rule-required='true'/>
								</div>
							</div>
							<div class="col-sm-12">
								<div class="form-group">
									<label class='control-label valited-required' for="nickname">昵称</label>
									<input type='text' class="form-control" id="nickname" name="nickname" placeholder="请输入昵称" title="请输入昵称"  data-rule-required='true'/>
								</div>
							</div>
							<div class="col-sm-12">
								<div class="form-group">
									<label class='control-label valited-required' for="sex">性别</label>
									<div style="width:100%;">
										<select name="sex" class="select2" id="sex">
											<option value="1">男</option>
											<option value="0">女</option>
										</select>
									</div>
									<!--<input type='text' class="form-control" id="sex" name="sex" placeholder="请上输入性别" title="请上输入性别" data-rule-required='true'/>-->
								</div>
							</div>
							<div class="col-sm-12">
								<div class="form-group">
									<label class='control-label valited-required' for="channelId">购买渠道</label>
									<!--<input type='text' class="form-control" id="channelName" name="channelName" placeholder="请输入购买渠道" title="请输入购买渠道"/>-->
									<div style="width:100%;">
										<select name="channelId" class="select2" id="channelId">

										</select>
									</div>
								</div>
							</div>
							<div class="col-sm-12">

								<!--<div class="form-group col-md-3">-->
									<!--<label class='control-label valited-required' for="endTime">结束时间</label>-->
									<!--<input placeholder="请输入结束时间" type="text" class="form-control ly_date" id="endTime" name="endTime" readonly>-->
								<!--</div>-->
								<div class="form-group">
									<label class='control-label valited-required' for="birth">出生日期</label>
									<input type='text' class="form-control ly_date" id="birth" name="birth" placeholder="请输入出生日期" title="请输入出生日期" data-rule-required='true'/>
								</div>
							</div>
							<div class="col-sm-12">
								<div class="form-group">

									<label class='control-label valited-required' for="isActivate">激活状态</label>
									<div style="width:100%;">
										<select name="isActivate" class="select2" id="isActivate">
											<option value="1">已激活</option>
											<option value="0">未激活</option>
										</select>
									</div>

								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-sm-12">
								<div class="form-group">
									<label class='control-label valited-required' for="shareCode">分享码</label>
									<textarea name="shareCode" id="shareCode" cols="30" rows="3" placeholder="请输入分享码"></textarea>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-lg-12">
								<label class='control-label valited-required' for="headImg">头像地址</label>
								<input type="hidden" id="fileInput">
								<input type='text' class="form-control" id="headImg" name="headImg" placeholder="请输入头像地址" title="请输入头像地址" data-rule-required='true'/>
								<div id="idCardParent"></div>
							</div>

						</div>
						<div class="text-center " style="position: relative;top:20px;padding-bottom:20px;">
							<button id="changeInfo" type="button" style="width: 30%" class="btn btn-success submit">提交</button>
						</div>
					</form>
				</div>
				<!--<div class="modal-footer">-->
				<!--<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>-->
				<!--<button type="button" class="btn btn-primary">保存</button>-->
				<!--</div>-->
			</div><!-- /.modal-content -->
		</div><!-- /.modal-dialog -->
	</div><!-- /.modal -->
</div>
<!--用户积分弹框-->
<div class="jifenModel">
	<div class="modal fade" id="jifenModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
					<h4 class="modal-title" id="exampleModalLabel">用户积分</h4>
				</div>
				<div class="modal-body">
					<form>
						<ul class="panel-heading" id="jifenHistory">

						</ul>
						<div class="form-group">
							<label for="integral" class="control-label">积分:</label>
							<input type="text" id="integral" name="integral" class="form-control"/>

						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					<button type="button" class="btn btn-primary" id="submitJifen" onclick="urlSubmit()">保存</button>
				</div>
			</div>
		</div>
	</div>
</div>
<!--备注弹框-->
<div class="remarkModel">
	<div class="modal fade" id="userremarkModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
					<h4 class="modal-title" id="exampleModalLabel">用户备注</h4>
				</div>
				<div class="modal-body">
					<form>

						<div class="form-group">
							<!--<label for="message-text" class="control-label">Message:</label>-->
							<textarea class="form-control" id="remark" name="remark"></textarea>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					<button type="button" id="submitRemark" class="btn btn-primary">保存</button>
				</div>
			</div>
		</div>
	</div>
</div>
<script src='/page/assets/js/dqq_include.js' type='text/javascript'></script>
<script src='/page/assets/js/boot/bootstrap.min.js' type='text/javascript'></script>
<script src="/page/assets/js/select2/select2.min.js"></script>
<script src="/page/assets/js/fileinput/fileinput.js"></script>
<script src="/page/assets/js/fileinput/locales/zh.js"></script>
<script src="/page/assets/js/select2/select2.min.js"></script>
<script src='/page/assets/js/tpl/userManage.js' type='text/javascript'></script>
<script>
    //常规用法
    laydate.render({
        elem: '#userModel #birth'
    });
    //国际版
    laydate.render({
        elem: '#userModel #birth',
        lang: 'en'
    });
</script>
</body>
</html>